<!DOCTYPE html>
<html class="loading" lang="en" data-textdirection="ltr" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="author" content="PIXINVENT">
<title></title>
<link rel="stylesheet" type="text/css" href="/app-assets/css/vendors.css">
<link rel="stylesheet" type="text/css" href="/app-assets/css/vertical-menu.css">
<link rel="stylesheet" type="text/css" href="/app-assets/css/bootstrap-extended.css">
</head>
<body>
<div class="content-wrapper">
	<div class="content-header ">
    <div class="content-header-left mb-2 clearfix">
      <h3 class="content-header-title mb-0 pull-left">添加部门</h3>
	
    </div>
  </div>
	
  <div class="card">
    <div class="card-content">
      <div class="card-body">
        
        <div class="form1 form3" >
            <form id="departmentForm" name="departmentForm" th:method="POST" th:action="@{/department_infor}" th:object="${department}">
                <!--2、在 form 表单中增加一个 input 输入框（hidden）用来告诉springboot我们要发送什么请求（PUT、DELETE）-->
                <input type="hidden" name="_method" value="PUT" th:if="${null != department.departmentId}" />
                <input type="hidden" name="departmentId" th:value="*{departmentId}" />
                <ul class="row">
                    <li class="col-sm-10 col-xs-12">
                        <span>部门名称：</span>
                        <input name="departmentName"  type="text" class="form-control" th:value="*{departmentName}">
                    </li>
                    <li class="col-sm-10 col-xs-12">
                        <input type="submit" class="btn btn-primary" value="确认保存">
                    </li>
                </ul>
            </form>
</div>
      
      </div>
    </div>
  </div>
</div>

<script th:src="@{/app-assets/js/vendors.min.js}" type="text/javascript"></script>
<script th:src="@{/app-assets/js/app-menu.js}" type="text/javascript"></script>
<script th:src="@{/app-assets/js/app.js}" type="text/javascript"></script>
<script th:src="@{/app-assets/js/echarts.min.js}" type="text/javascript"></script>
<script th:src="@{/app-assets/js/jquery.bigcolorpicker.min.js}" type="text/javascript"></script>
<script th:src="@{/app-assets/laydate/laydate.js}" type="text/javascript"></script>
<script>
lay('#version').html('-v'+ laydate.v);
laydate.render({
    elem: '#test1'
  ,range: true
  ,theme: '#00B5B8'
});
</script>
</body>
</html>